﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCenter.master" AutoEventWireup="true" CodeBehind="UserTariff.aspx.cs" Inherits="FastShip88.UserTariff" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Script_User" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">


           <asp:MultiView ID="multiView" runat="server" ActiveViewIndex="0">
          <asp:View ID ="viewViewPending" runat ="server" >

            <div id ="divParcelsInReq" runat="server" >
            <br /> <asp:Label ID="Label5" runat="server" Text="下面列出所有应补缴关税的包裹：" CssClass="gv_prompt"></asp:Label>&nbsp;
                <asp:Label ID="lblUserId" runat="server" CssClass="gv_prompt" Text="" 
                    Visible="false"></asp:Label>
            <br /><br />
                                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                ConnectionString="<%$ ConnectionStrings:FastShip88ConnectionString %>" 
                                                
                    SelectCommand="SELECT * FROM [UserBills] WHERE (([UserId] = @UserId) AND ([IsCancelled] = @IsCancelled) AND ([IsCleared] = @IsCleared) AND ([FeeTypeId] = @FeeTypeId)) ORDER BY [Date]">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="lblUserId" Name="UserId" 
                                                        PropertyName="Text" Type="Int32" />
                                                    <asp:Parameter DefaultValue="false" Name="IsCancelled" Type="Boolean" />
                                                    <asp:Parameter DefaultValue="false" Name="IsCleared" Type="Boolean" />
                                                    <asp:Parameter DefaultValue="13" Name="FeeTypeId" Type="Byte" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                            <asp:GridView ID="gvTariffBill" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="Id" Width="850px"   EmptyDataText="没有数据！" CellPadding="1"  DataSourceID="SqlDataSource1"  >
                    <Columns>

                        <asp:CommandField ShowSelectButton="True" />

                        <asp:BoundField DataField="Id" HeaderText="帐单编号" ReadOnly="True" >
                         <ItemStyle Width="60px" />
                         </asp:BoundField>

                        <asp:BoundField DataField="OutParcelNo" HeaderText="出站运单号" ReadOnly="True" 
                            SortExpression="OutParcelNo">
                        <ItemStyle Width="160px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Amount" HeaderText="金额" ReadOnly="True" 
                            SortExpression="Amount">
                            <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Memo" HeaderText="描述" ReadOnly="True" 
                            SortExpression="Memo">
                            <ItemStyle Width="340px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Date" HeaderText="日期" ReadOnly="True" 
                            SortExpression="Date" Visible="True" DataFormatString="{0:d}">
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                     </Columns>
                    <SelectedRowStyle BackColor="#669999"  />
                    <HeaderStyle BackColor="#999999" ForeColor="White" />
                </asp:GridView>
                <br />
                <br />
                <asp:Button ID="btnPayTariff" runat="server" Text="付款" 
                    onclick="btnPayTariff_Click"  />&nbsp; &nbsp;
                </div>
                <hr />

            
            </asp:View>
  
            <asp:View ID ="viewPay" runat ="server" >
            <br />
            <br />
                       <asp:Label ID="lblCreateReqSuccess" runat="server" Text="创建中转请求成功，请付款。" Font-Bold="True" 
              Font-Size="Medium" ForeColor= "Green" Height="30px" Visible="False" 
              Width="500px"></asp:Label>
            
              <div class="layout-main ">
                <div >
                    <UL>


                    <LI><SPAN >付款编号：</SPAN> 
                        <asp:Label ID="lblUserBillId" runat="server" Text=""></asp:Label>
                        </LI>
                    <LI><SPAN >付款金额：</SPAN> 
                        <asp:Label ID="lblTotalAmount" runat="server" Text="0"></asp:Label>
                        <SPAN >￥</SPAN> </LI></UL>
                    
                </div>
                
                <div id=div_default ><SPAN >
                    <B>请选择支付宝进行支付</B></SPAN> 
                    <br />

                    <asp:Label ID="Label4" runat="server" Text="" Width="300px" ></asp:Label>
                    <asp:ImageButton ID="imgAliPay" runat="server"   
                        ImageUrl="~/App_Themes/White/Images/pay_zhifubao.gif" 
                        onclick="imgAliPay_Click" /> 
                    
                    <br /> <br />
                 </div><!-- 选择其它银行或支付平台 -->

                 <div ><B>付款遇到问题：</B> 
                    <P>·付款时浏览器自动关闭怎么办？</P>
                    <P >答：点击Intenet选项,点击连接→局域网设置→高级→勾选 “对所有协议均使用相同的代理服务器”。</P>
                 </div>
                 
               </div>

             </asp:View>        

            
            </asp:MultiView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PayButtonForm" runat="server" >
<asp:Label ID="lbButton" runat="server" ></asp:Label>
</asp:Content>